/**
 * @param {number[]} dist
 * @param {number[]} speed
 * @return {number}
 */
 var eliminateMaximum = function(dist, speed) {
    const n = dist.length
    const minute = new Array(n)
    for(let i  =0; i<n; i++){
        minute[i] = Math.ceil(dist[i]/speed[i])
    }
    minute.sort((a,b) => a-b)
    let ans = 0
    for(let i = 0; i<n; i++){
        if(minute[i] === minute[i-1] && minute[i] <= ans){
            break
        }
        ans++
    }
    return ans  
};